# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=hikari
pkgver=2.3.3
pkgrel=5
pkgdesc="Stacking Wayland compositor with additional tiling capabilities"
url="https://hub.darcs.net/raichoo/hikari"
arch="all"
license="MIT"
makedepends="
	bmake
	cairo-dev
	libinput-dev
	libucl-dev
	libxkbcommon-dev
	linux-pam-dev
	pango-dev
	pixman-dev
	wayland-dev
	wlroots0.15-dev
	xwayland-dev
	"
subpackages="$pkgname-doc $pkgname-unlocker"
source="https://hikari.acmelabs.space/releases/hikari-$pkgver.tar.gz
	flag-arg.patch
	"
options="suid !check" # no tests, unlocker

build() {
	bmake WITH_ALL=1 ETC_PREFIX=/ PREFIX=/usr VERSION="$pkgver"
}

package() {
	bmake DESTDIR="$pkgdir" ETC_PREFIX=/ PREFIX=/usr install
}

unlocker() {
	pkgdesc="$pkgdesc (unlocker)"

	amove usr/bin/hikari-unlocker
}

sha512sums="
15b6244ef46b29ad069475e8fadbafb01a65c8f96d1f89dd315d36f79dfea9a542936a5472e42237000f506094c7e08be37961c92a7eeed31477f4ed548f39f3  hikari-2.3.3.tar.gz
10b46bc1fee6953a3c6a1c74c38d168b167f5fd5832e195de043d6b1c202eac9e7f95ef58a79299007c40355fd345fb74d6f8e754525ab5df788bffc94d10804  flag-arg.patch
"
